From: Roland McGrath Date: Thu, 13 May 1993 03:00:51 +0000 (+0000) Subject: (main): Don't require that there be input files if -i switches were given. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~96301 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=0e5ad25f6b4abb57a379bd309beeda8371bf41f9;p=emacs.git (main): Don't require that there be input files if -i switches were given. --- diff --git a/lib-src/etags.c b/lib-src/etags.c index 95e23589393..e3584f8dcea 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -658,12 +658,12 @@ main (argc, argv) } } - if (optind == argc) + if (optind == argc && nincluded_files == 0) { fprintf (stderr, "%s: No input files specified.\n", progname); usage: - fprintf (stderr, "%s: Try '%s --help' for a complete list of options.\n", + fprintf (stderr, "%s: Try `%s --help' for a complete list of options.\n", progname, progname); exit (BAD); }